/*
 * fake.cpp
 *
 *  Created on: 29/ott/2012
 *      Author: lordmzn
 */
#include "moeaframework.h"
#include <cstddef>

int main(int argc, char **argv) {
	int nvars = 1;
	int nobjs = 2;
	double vars[nvars];
	double objs[nobjs];
	MOEA_Init(nobjs, 0);
	while (MOEA_Next_solution() == MOEA_SUCCESS) {
		MOEA_Read_doubles(nvars, vars);
		objs[0] = vars[0]*1 - 15.0 + 300;
		objs[1] = vars[0]*12 - 120.0 + 300;
		MOEA_Write(objs, NULL);
	}
	MOEA_Terminate();
	return 0; // was: return EXIT_SUCCESS;
}

